home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11387 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c++,comp.lang.eiffel,comp.lang.c,comp.object,comp.software-eng
  4. Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
  5. Date: 13 Mar 1996 23:08:11 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4i8gkrINNn8o@keats.ugrad.cs.ubc.ca>
  8. References: <1995Jul3.034108.4193@rcmcon.com> <RMARTIN.96Mar13110714@rcm.oma.com> <4i7lup$50t@news1.mnsinc.com> <bksDo8KDp.260@netcom.com>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <bksDo8KDp.260@netcom.com>,
  12. Bradley K. Sherman <bks@netcom.com> wrote:
  13.  >
  14.  >Of course you should beware of C hackers!  They will beat your
  15.  >object-oriented shop in program size, speed, and data storage
  16.  >requirements, and be functioning in the market while you guys
  17.  >are still conducting 5 hours sessions in abstract genealogy
  18.  >and nugatory reductionism.
  19.  
  20. I couldn't agree more.
  21.  
  22. There is still some debate about whether the OO approach is better than
  23. plain old structured design.
  24.  
  25. For the most part, I still stick with a structured design that uses
  26. abstract data types.  I can implement the same problem with a lot fewer
  27. lines of ANSI C than an equivalent OO solution in C++, with more readable,
  28. simpler code---and yes, with reusable components, polymorphic
  29. ``container'' data types and the like that have give the design a strong
  30. OO flavour without the hassle.
  31.  
  32. Even simply declaring an object in C++ with ``new'' can cause hidden
  33. side-effects if the constructor/destructor alter global variables!
  34. Doing this is common; Bjarne's annotated reference manual even
  35. recommends it.  Following the flow of control in when inspecting someone
  36. else's object-oriented program can be a daunting task.
  37.  
  38. If you want an example of a hacker's language, look no farther than C++.
  39. -- 
  40.  
  41.